import request from '@/utils/request'

export function newaccountAdd(params) {
  return request({
    url: 'a/u/username',
    method: 'post',
    params:params
  })
}

export function AccountList(params) {
  return request({
    url: '/a/u/username/list',
    method: 'get',
    params:params
  })
}
export function DelAccount(id) {
  return request({
    url: '/a/u/username/'+id,
    method: 'delete',
    params:id
  })
}
export function EditAccount(id) {
  return request({
    url: '/a/u/username/'+id,
    method: 'get',
  })
}

export function updateAccount(id,params) {
  return request({
    url: '/a/u/username/'+id,
    method: 'post',
    params:params
  })
}

export function ChangePwd(id,params) {
  return request({
    url: '/a/u/username/'+id,
    method: 'post',
    params:params
  })
}
